<!DOCTYPE HTML>
<html>
<head>
    <include file="Common:header_include"/>
    <title>添加医患</title>
</head>
<body>
<div class="pd-20">
    <form action="{:U('add')}" method="post" class="form form-horizontal" id="form">
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red">*</span>选择患者：</label>
            <div class="formControls col-5">
                <span class="select-box">
                <select class="select Validform_error" size="1" name="patient_id" datatype="*" nullmsg="请选择">
                    <option value="" selected="" disabled="disabled">请选择</option>
                    <volist name=":getList('patient')" id="v">
                        <option value="{$v.id}">{$v.name}</option>
                    </volist>
                </select>
                </span>
            </div>
            <div class="col-4"></div>
        </div>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red">*</span>选择医生：</label>
            <div class="formControls col-5">
                <span class="select-box">
                <select class="select Validform_error" size="1" name="doctor_id" datatype="*" nullmsg="请选择">
                    <option value="" selected="" disabled="disabled">请选择</option>
                    <volist name=":getList('doctor')" id="v">
                        <option value="{$v.id}">{$v.name}</option>
                    </volist>
                </select>
                </span>
            </div>
            <div class="col-4"></div>
        </div>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red"></span>描述：</label>
            <div class="formControls col-5">
                <input type="text" class="input-text" placeholder="请输入" name="description">
            </div>
            <div class="col-4"></div>
        </div>
        <!--<div class="row cl">-->
            <!--<label class="form-label col-3"><span class="c-red">*</span>状态：</label>-->
            <!--<div class="formControls col-5">-->
                <!--<span class="select-box">-->
                <!--<select class="select Validform_error" size="1" name="status_id" datatype="*" nullmsg="请选择">-->
                    <!--<option value="" selected="" disabled="disabled">请选择</option>-->
                    <!--<volist name=":getList('link_status','',false,'')" id="v">-->
                        <!--<option value="{$v.id}">{$v.title}</option>-->
                    <!--</volist>-->
                <!--</select>-->
                <!--</span>-->
            <!--</div>-->
            <!--<div class="col-4"></div>-->
        <!--</div>-->
        <!--<div class="row cl" id="helper" style="display: none">-->
            <!--<label class="form-label col-3"><span class="c-red">*</span>选择助手：</label>-->
            <!--<div class="formControls col-5">-->
                <!--<span class="select-box">-->
                <!--<select class="select Validform_error" size="1" name="helper_id" datatype="*" nullmsg="请选择">-->
                    <!--<option value="" selected="" disabled="disabled">请选择</option>-->
                    <!--<volist name=":getList('doctor')" id="v">-->
                        <!--<option value="{$v.id}">{$v.name}</option>-->
                    <!--</volist>-->
                <!--</select>-->
                <!--</span>-->
            <!--</div>-->
            <!--<div class="col-4"></div>-->
        <!--</div>-->
        <div class="row cl">
            <div class="col-9 col-offset-3">
                <input class="btn btn-primary radius" type="submit" value="提交">
            </div>
        </div>
    </form>
</div>
<include file="Common:footer_include"/>
<script>
    function selectLinkStatus() {
        var status = $("select[name='status']").val();
        if(status == 3){
            //显示分配助手
            $("#helper").show();
        }else {
            $("#helper").hide();
        }
    }
</script>
</body>
</html>